import request from '../utils/request'

//删除异常通知信息
export function delNotice(data) {
  return request({
    url: '/dealException/delNotice',
    method: 'post',
    data
  })
}

//删除异常类型信息
export function delType(data) {
  return request({
    url: '/dealException/typeDel',
    method: 'post',
    data
  })
}

//获取异常类型列表
export function typeList(data) {
  return request({
    url: '/dealException/getTypeList',
    method: 'post',
    data
  })
}

//获取通知列表
export function noticeList(data) {
  return request({
    url: '/dealException/getNoticeList',
    method: 'post',
    data
  })
}

//添加异常类型信息
export function typeEdit(data) {
  return request({
    url: '/dealException/typeEdit',
    method: 'post',
    data
  })
}

//添加通知列表
export function noticeEdit(data) {
  return request({
    url: '/dealException/editNotice',
    method: 'post',
    data
  })
}

//获取异常报表
export function exceptionList(data) {
  return request({
    url: '/dealException/getList',
    method: 'post',
    data
  })
}

// 黄灯红灯异常上报时间
export function setTimeoutReport(data) {
  return request({
    url: '/dealException/setTimeoutReport',
    method: 'post',
    data
  })
}

// 获取黄灯红灯异常上报时间
export function getTimeoutReport(data) {
  return request({
    url: '/dealException/getTimeoutReport',
    method: 'post',
    data
  })
}

// 异常报表
export function exceptionExport(data) {
  return request({
    responseType: 'blob',
    url: '/dealException/export',
    method: 'post',
    data
  })
}
